@extends('common')
@section('content')
<style type="text/css">
   h3{
       margin-left:2%;
   	   margin-top:1%;
   }
   td{
   	margin-left: 20%;
   }
</style>
<h3>我的换车记录</h3>
<table class="table table-bordered table-hover definewidth m10">
	<tr>
		<td>换车时间</td>
		<td>换车详情</td>
		<td>换车原因</td>
		<td>处理人</td>
	</tr>
@foreach($model as $k =>$v)
	<tr>
		<td>{{$v->cha_date}}</td>
		<td>{{$v->cha_a}}<b>→</b>{{$v->cha_b}}</td>
		<td>{{$v->cha_desc}}</td>
		<td>{{$v->cha_name}}</td>
	</tr>
@endforeach
</table>

<style>

.pagination ul{
     margin-left: 20%;
 }
    
     .disabled span{
       display: none;
    }
 .pagination  li{
     float: left;
     overflow:hidden;
     margin-top:20px;
     list-style:none;

 }

 .pagination li a{
    display:block;
     height:30px;
     min-width:30px;
     text-align:center;
     font-size:14px;
     border:1px solid #d6d6d6;
     float:left;
     margin-left:10px;
     padding:3px 5px;
     line-height:30px;
     text-decoration:none;
     color:#666;
 }
 .active span{
    display:block;
     height:30px;
     min-width:30px;
     text-align:center;
     font-size:14px;
     border:1px solid #d6d6d6;
     float:left;
     margin-left:10px;
     padding:3px 5px;
     line-height:30px;
     text-decoration:none;
     color:#666;
 }
 .pagination li a:hover,a.here{
     background:#FF4500;
     border-color:#FF4500;
     color:#FFF;
 }
 .page{
    float:center;
 }

</style>
        <div class='page'>
		{!! $model->render() !!}
	    </div>
@stop